//
//  NetworkManager.h
//  SameWorld
//
//  Created by 李小朋 on 2017/3/16.
//  Copyright © 2017年 杨旭. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NetworkManager : NSObject
//参数urlStr表示网络请求url，paramdic表示请求参数，finish回调指网络请求成功回调，enError表示失败回调

+ (void)requestGETWithURLStr:(NSString *)urlStr paramDic:(NSDictionary *)paramDic finish:(void(^)(id responseObject))finish enError:(void(^)(NSError *error))enError; //GET请求方法

+ (void)requestPOSTWithURLStr:(NSString *)urlSr paramDic:(NSDictionary *)paramDic finish:(void(^)(id responseObject))finish enError:(void(^)(NSError *error))enError;//POST请求方法

+ (void)requestPOSTWithURLStre:(NSString *)urlSr paramDic:(NSDictionary *)paramDic finish:(void(^)(id responseObject))finish enError:(void(^)(NSError *error))enError;//POST请求方法

#pragma mark - 带有网络监测的方法
+ (void)requestStatusPOSTWithURLStr:(NSString *)urlSr paramDic:(NSDictionary *)paramDic finish:(void(^)(id responseObject))finish enError:(void(^)(NSError *error))enError;//POST请求方法


@end
